﻿<Page x:Class="Resn.WhuPub.WPFClientUI.InsideBusinessPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      Style="{StaticResource PageStyle}" Loaded="Page_Loaded">
        <Grid x:Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                </Grid.RowDefinitions>
                <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                                <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Border Grid.Column="0" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="学校" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding LoginEmployee.Corporates.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Click="CorporateButton_Click" />
                                </Grid>
                        </Border>

                        <Border Grid.Column="1" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="校区" />
                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding LoginEmployee.Branchs.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Click="BranchButton_Click" />
                                </Grid>
                        </Border>

                        <Border Grid.Column="2" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="部门" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding LoginEmployee.Departments.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入"  Click="DepartmentButton_Click" />
                                </Grid>
                        </Border>

                </Grid> 
                
                <Grid Grid.Row="2">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition/>
                                <ColumnDefinition/>
                        </Grid.ColumnDefinitions>

                        <Border Grid.Column="0" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="联系人" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding LoginEmployee.Contacts.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入"  Click="ContactButton_Click" />
                                </Grid>
                        </Border>

                        <Border Grid.Column="1" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="书籍" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding BookEntityManager.Entitys.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入"  Click="BookButton_Click" />
                                </Grid>
                        </Border>
                </Grid>
                

                
                
        </Grid>
</Page>